package com.syh.jn.scm.infrastructure.repository.model.base;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 销售团队
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_SALES_TEAM")
@EqualsAndHashCode(callSuper = true)
public class SalesTeamModel extends SuperBusinessModel {
  /**
   * 名称
   */
  @Column(name = "NAME", columnDefinition = "varchar(50) COMMENT '姓名'")
  private String name;
  /**
   * 团队领导人
   */
  @Column(name = "SALESMAN_ID", columnDefinition = "bigint COMMENT '团队领导人'")
  private Long salesmanId;
  /**
   * 描述
   */
  @Column(name = "DESCRIPTION", columnDefinition = "varchar(200) COMMENT '描述'")
  private String description;
  /**
   * 状态( -1:停用, 1:启用)
   */
  @Column(name = "STATUS", columnDefinition = "smallint COMMENT '状态( -1:停用, 1:启用)'")
  private Short status;
  /**
   * 排序等级
   */
  @Column(name = "ORDER_LEVEL", columnDefinition = "int COMMENT '排序等级'")
  private Integer orderLevel;
  /**
   * 创建日期
   */
  @Column(name = "CREATE_TIME_STAMP", columnDefinition = "bigint COMMENT '创建日期'")
  private Long createTimeStamp;
  /**
   * 最后修改日期
   */
  @Column(name = "LAST_UPDATE_TIME_STAMP", columnDefinition = "bigint COMMENT '最后修改日期'")
  private Long lastUpdateTimeStamp;
}
